package com.ruoyi.cfuser.api.rescue;


import com.ruoyi.cfuser.api.rescue.domain.RescueTask;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@FeignClient("ruoyi-cfuser")
@Component
public interface RemoteInitiateService {

    @PostMapping("/rescue/help")
    public Map<String, Object> filterId(@RequestBody RescueTask rescueTask);

    @PostMapping("/rescue/rabbit")
    public void rabbit(@RequestBody String id);


    @GetMapping(value = "rescue/task/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);

    @PutMapping("/rescue/task")
    public AjaxResult edit(@RequestBody RescueTask rescueTask);

}
